配置 Squid 服務

如果 Kaspersky Web Traffic Security 是從 RPM 或 DEB 軟體套件安裝到即用型作業系統,則這些說明適用。如果 Kaspersky Web Traffic Security 是從 ISO 檔案安裝,則無法手動變更內建代理伺服器的設定檔。

要配置 Squid 服務,請:

  1. 變更 Squid 服務的設定。為此,新增以下字串到設定檔 /etc/squid/squid.conf 的末尾:

    icap_enable on

    adaptation_send_username on

    adaptation_send_client_ip on

    icap_service kwts_req reqmod_precache icap://127.0.0.1:1344/av/reqmod

    icap_service kwts_res respmod_precache icap://127.0.0.1:1344/av/respmod

    icap_service_failure_limit -1

    adaptation_access kwts_req allow all

    adaptation_access kwts_res allow all

  2. 在同一個設定檔中,新增 tcpkeepalive 選項到 http_port 指令:

    http_port 3128 tcpkeepalive=60,30,3

  3. 重啟 Squid 服務。為此,請執行指令:

    service squid restart

Squid 服務配置現在已完成。

頁面頂端